package edu.sctu.wujiayi.month06.day20150614.FilePractice;


import java.io.File;
import java.io.IOException;

/**
 * Created by user11 on 2015/6/14.
 */
public class FileUtil {

    public static void main(String[] args) throws IOException {
        File f = new File("D://xuexue.doc");
        File file = new File("D://nath//sherlock.txt");
        file.createNewFile();
        System.out.println(file.exists());
        System.out.println(file.getPath());
        System.out.println(f.exists());
        f.mkdir();
        System.out.println(f.exists());
        f.delete();
        System.out.println(f.exists());
        System.out.println(f.getName());

    }

}
